package com.guangwei.lockscreenforelder.util

class Validator @Throws(InstantiationException::class)
private constructor() {

    init {
        throw InstantiationException("This class is not for instantiation")
    }

    companion object {

        /**
         * check whether be empty/null or not
         *
         * @param string
         * @return
         */
        fun isEffective(string: String?): Boolean {
            return !(string == null || "" == string || " " == string
                    || "null" == string || "\n" == string)
        }
    }
}